home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TTDRIVER / RWABS.C < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  1.1 KB  |  69 lines

  1. /* Test driver calls */
  2.  
  3. #include    "osbind.h"
  4. /*
  5. #include    "nuosbind.h"
  6. #include    "getstart.h"
  7. /**/
  8.  
  9. char    buf[512*274];
  10. int    x = 1;
  11.  
  12. main()
  13. {
  14.     /*
  15.     char    buf[512], bbuf[512];
  16.     int    i;
  17.     long    srchndl, dsthndl, ret;
  18.     /**/
  19.  
  20. /*
  21.     for (i = 0; i < 512*3;) {
  22.         buf[i++] = 'M';
  23.         buf[i++] = 'I';
  24.         buf[i++] = 'N';
  25.         buf[i++] = 'O';
  26.     }
  27. /**/    
  28.  
  29.     /* physical operation on unit 0 */
  30. /*
  31.     Lrwabs(9, buf, 1, 0x10000, 2);
  32.     Lrwabs(8, bbuf, 1, 0x10000, 3);
  33. /**/    
  34.     /* logical operation on D: */
  35. /*
  36.     i = 1;
  37.     while (i == 1) {
  38.         Mediach(3);
  39.         Getbpb(3);
  40.         Rwabs(1, buf, 1, 0x700, 3);
  41.     }
  42. /**/    
  43. /*
  44.     Lrwabs(0, bbuf, 1, 0x10000, 3);
  45.     Rwabs(1, buf+1, 3, 102, 3);
  46.     Rwabs(0, buf, 3, 102, 3);
  47.     Rwabs(9, bbuf, 1, 0, 11);
  48.     Rwabs(8, bbuf, 1, 0, 11);
  49.     Rwabs(9, bbuf, 1, 0, 11);
  50.     char    *buf256;
  51.     
  52.     buf256 = (char *)Malloc(131072L);
  53.     Rwabs(8, buf256+1, 2, 0, 18);
  54.     Rwabs(9, buf256+1, 2, 0xa35a, 18);
  55. /**/
  56. /*
  57.     Rwabs(8, buf256+1, 255, 0, 10);
  58.     Rwabs(9, buf256+1, 255, 0, 10);
  59. /**/
  60.     Fsfirst("h:\\*.*", 0);
  61.     
  62.     while (!(Cconis()))
  63.         ;
  64.  
  65.     Fsfirst("g:\\*.*", 0);
  66.     Fsfirst("h:\\*.*", 0);
  67.     Pterm(0);
  68. }
  69.